package com.knowif.common.exception;

import com.knowif.system.model.MessageEnum;

public class BusinessException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int code;
	private String msg;

	public BusinessException() {

	}

	public BusinessException(String msg) {
		this.msg = msg;
		this.code = MessageEnum.ERROR.getCode();
	}

	public int getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
}
